
<%@ page language="java" pageEncoding="UTF-8"	contentType="text/html; charset=UTF-8"%>
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="${ctx}/js/jquery-easyui-1.4.1/themes/default/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="${ctx}/js/jquery-easyui-1.4.1/themes/icon.css" type="text/css"></link>
<link rel="stylesheet" href="${ctx}/css/default.css"  type="text/css" />
<script type="text/javascript" src="${ctx}/js/jquery-1.8.3.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="${ctx}/js/jquery-easyui-1.4.1/jquery.easyui.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="${ctx}/js/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js" charset="UTF-8"></script>
<script type="text/javascript" charset="utf-8" src="${ctx}/ueditor/ueditor.config1.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctx}/ueditor/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="${ctx}/ueditor/ueditor.all.min.js"></script>
<script language="javascript" src="${ctx}/lodop/LodopFuncs.js" charset="utf-8"></script>

<script type="text/javascript" charset="UTF-8">
window.UEDITOR_HOME_URL = "${ctx}/ueditor/";
//屏蔽右键
document.oncontextmenu=function(e){return false;}
//屏蔽状态栏
window.status='欢迎使用！';

//ValidateBox 验证扩展
$.extend($.fn.validatebox.defaults.rules, { 
//判断两个值相等  
    equals: {   
        validator: function(value,param){   
            return value == $(param[0]).val();   
        },   
        message: '前后密码不一致'
    },   

//判断最小长度  
    minLength: {   
        validator: function(value, param){   
            return value.length >= param[0];   
        },   
        message: '请输入至少 {0} 个字符'  
    }, 
    
//判断最大长度  
    maxLength: {   
        validator: function(value, param){   
            return value.length <= param[0];   
            
        },   
        message: '输入最多 {0} 个字符'  
    },  

  //判断最大长度  
    maxLengthValid: {   
        validator: function(value, param){   
            return value.length <= param[0];   
        },   
        message: '{1}'  
    }, 

//正则表达式 判断汉字   
    chinese: {   
        validator: function(value){ 
        	var reg=/^[\u4e00-\u9faf]+$/; 
            return reg.test(value);   
        },   
        message: '请输入汉字'  
    },  
//正则表达式判断文件类型xls
	xls:{
		validator: function(value){ 
        	var reg=/\.xls$/; 
            return reg.test(value);   
        },   
        message: '请选择后缀名 xls 的文件'
	}
});
//ValidateBox方法扩展，移除验证、还原验证
$.extend($.fn.validatebox.methods, { 
    remove: function(jq, newposition){ 
        return jq.each(function(){ 
            $(this).removeClass("validatebox-text validatebox-invalid").unbind('focus.validatebox').unbind('blur.validatebox');
        }); 
    },
    reduce: function(jq, newposition){ 
        return jq.each(function(){ 
           var opt = $(this).data().validatebox.options;
           $(this).addClass("validatebox-text").validatebox(opt);
        }); 
    }  
});
//重置DataGrid 第一页
function resetDG(dg){
 	$(dg).datagrid('options').pageNumber = 1;
    	var p = $(dg).datagrid('getPager');
    	if (p){
			$(p).pagination({
				pageNumber:1
			});
    	}
    	$(dg).datagrid('reload');
}

$(function(){
	
})
</script>

